package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface DishService extends IService<Dish> {
    //新增菜品的同时要对菜品口味表数据进行添加
    public void saveWithFlavor(DishDto dishDto);

    //获取菜品的同时也要对菜品的口味进行数据获取
    public DishDto getByIdWithFlavor(Long id);

    void updateByIdWithFlavor(DishDto dishDto);
}
